//
//  HEIMMessageMaker.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/27.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEIMMessageMaker.h"
#import "HEIMAudioObject.h"

@implementation HEIMMessageMaker

+ (HEIMMessage *)msgWithText:(NSString *)text {
    HEIMMessage *textMessage = [[HEIMMessage alloc] init];
    textMessage.text         = text;
    return textMessage;
}

+ (HEIMMessage *)msgWithAudio:(NSString *)filePath duration:(NSInteger)duration {
    HEIMAudioObject *audioObject = [[HEIMAudioObject alloc] initWithSourcePath:filePath duration: duration];
    HEIMMessage *message = [[HEIMMessage alloc] init];
    message.messageObject = audioObject;
    return message;
}

@end
